//
//  DrugTableViewCell.m
//  WE
//
//  Created by apple on 15/11/23.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "DrugTableViewCell.h"
#import "Size.h"
@implementation DrugTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(10*Width, 10*Height, 20*Width, 20*Height)];
        imageV.layer.masksToBounds = YES;
        imageV.layer.cornerRadius = 10;
        imageV.image = [UIImage imageNamed:@"flower"];
        [self addSubview:imageV];
        
        UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectMake(40*Width, 0, WindowWidth - 80*Width, 40*Height)];
        
        textLabel.text = @"复方铝酸颗粒";
        textLabel.font = FONT(14);
        textLabel.textColor = [UIColor blackColor];
        [self addSubview:textLabel];
        
        UIImageView *imagev = [[UIImageView alloc] initWithFrame:CGRectMake(WindowWidth - 30*Width, 10*Height, 10*Width, 15*Height)];
        imagev.image = [UIImage imageNamed:@"ico_arrow"];
        [self addSubview:imagev];
        
    }
    
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
